package models;

import java.io.Serializable;
import java.util.Date;
import java.util.Random;

import javax.persistence.Id;

import com.google.appengine.api.datastore.Text;
import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@SuppressWarnings("serial")
@Cached
public class Domain implements Serializable{
	@Id private String domain = "";
	@Unindexed private Text whois=null;
	@Unindexed private String otherDomain = "";
	@Indexed private int rand = new Random().nextInt(100000);
	@Indexed private Date date=new Date();
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getDomain() {
		return domain;
	}
	public void setDomain(String domain) {
		this.domain = domain;
	}
	public Text getWhois() {
		return whois;
	}
	public void setWhois(Text whois) {
		this.whois = whois;
	}
	public String getOtherDomain() {
		return otherDomain;
	}
	public void setOtherDomain(String otherDomain) {
		this.otherDomain = otherDomain;
	}
	public int getRand() {
		return rand;
	}
	public void setRand(int rand) {
		this.rand = rand;
	}
}
